package com.shuwen.gcdj.bean.Home.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.time.LocalDateTime;

/**
 * 首页查询条件
 *
 * @author XYC
 */
@Data
@ApiModel
public class HomeStatusReq {

    /**
     * 设备编码
     */
    @ApiModelProperty("设备编码")
    @NotEmpty(message = "equipmentCode设备编码不能为空")
    private String equipmentCode;

    /**
     * 时间
     */
    @ApiModelProperty("时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime ts;
}
